import request from '@/services/api'

export async function getFoodDetail (sightId: string, page: number, size: number) {
   let ret = await request.get(`/food/getFoodBySightId?sightId=${sightId}&page=${page}&size=${size}`)
   return ret?.data?.foodList?.records??[]
}

export async function getRecommendFoodie (sightId: string) {
  let ret = await request.get(`/food/getRecommendFoodie?sightId=${sightId}`)
  return ret?.data?.recommendFoodie??[]
}

export async function getBanner (sightId: string) {
  let ret = await request.get(`/food/getBanner?sightId=${sightId}`)
  return ret?.data?.banner??[]
}
